UITabBar の title label を取得する方法

cf: ios - Multiple lines in UITabBarItem Label - Stack Overflow

if let tabBarView = vc.tabBarItem.value(forKey: "view") as? UIView,
   let tabBarLabel = (tabBarView.subviews.compactMap { $0 as? UILabel }).first {
    // tabBarLabel を使って AutoShrink 設定するなりする
}

subviews.compactMap はまあまあ安全でいいなと思った。
subviews[1] とかはクラッシュの危険性がある。

UIKit iOS Development